import styled from 'styled-components'

export const HomeWrapper = styled.div`
    overflow: hidden;
    width: 960px;
    margin: 0 auto;
`
export const HomeLeft = styled.div`
    margin-left: 15px;
    padding-top: 30px;
    width: 625px;
    float: left;
    .banner-img {
        width: 625px;
        height: 270px;
    }
`
export const HomeRight = styled.div`
    width: 280px;
    float: right;
`
export const TopicWrapper = styled.div`
    overflow: hidden;
    padding: 20px 0 10px 0;
    margin-left: -18px;
    border-bottom: 1px solid #dcdcdc;
`
export const TopicItem = styled.div`
    float: left;
    height: 32px;
    line-height: 32px;
    margin-left: 18px;
    margin-bottom: 10px;
    padding-right: 10px;
    background: #f7f7f7;
    font-size: 14px;
    color: #000;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    .topic-pic {
        float:left;
        width: 32px;
        height: 32px;
        margin-right: 10px;
    }
`
export const ListItem = styled.div`
    overflow: hidden;
    padding: 20px 0;
    border-bottom: 1px solid #dcdcdc;
    color: #999999;
    .pic {
        width: 125px;
        height: 100px;
        float: right;
        border-radius: 10px;
    }
`
export const ListInfo = styled.div`
    width: 500px;
    float: left;
    .title {
        line-height: 27px;
        font-size: 18px;
        font-weight: bold;
        color: #333;
    }
    .desc {
        font-size: 13px;
        line-height: 18px;
    }
`

export const RecommendWrapper = styled.div`
    margin: 30px 0;
    width: 280px;
`
export const RecommendItem = styled.div`
    width: 280px;
    height: 50px;
    margin-bottom: 5px;
    background: url(${(props)=> props.imgUrl});
    background-size: contain;
`
export const WriterWrap = styled.div`
    margin: 30px 0;
    width: 280px;
`
export const WriterHead = styled.div`
   width: 280px;
   height: 50px;
   line-height: 50px;
   font-size: 14px;
   color: #969696;
`
export const WriterItem = styled.div`
   overflow: hidden;
   margin-bottom: 10px;
   .pic {
       float: left;
       width: 48px;
       height: 48px;
       border-radius: 50%;
       margin-right: 10px;
   }
   .content {
       overflow: hidden;
        .title {
            float: left;
            padding-top: 5px;
            font-size: 14px;
            line-height: 20px;
            color: #333;
        }
        .notice {
            float: right;
            margin-top: 5px;
            font-size: 13px;
            font-weight: bold;
            color: #42c02e
        }
   }
   .desc {
       font-size: 12px;
       line-height: 18px;
       color: #969696;
   }
`
export const WriterSwitch = styled.span`
   float: right;
   font-size: 13px;
   cursor: pointer;
   .spin {
       float: left;
       font-size: 12px;
       margin-right: 2px;
       transition: all 0.2s ease-in;
       transform: rotate(0deg);
       transform-origin: center;
   }
`

export const LoadMore = styled.div`
    width: 100%;
    height: 40px;
    line-height: 40px;
    margin: 30px 0;
    background: #a5a5a5;
    text-align: center;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
`
export const BackTop = styled.div`
    position: fixed;
    right: 100px;
    bottom: 100px;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border: 1px solid #ccc;

`